package org.seler.spring.ioc.AdditionalCapabilities;

import java.util.Locale;

import org.springframework.context.MessageSource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test_I18N {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		  String filePath = "org/seler/configuration/beans.xml";
		  MessageSource resources = new ClassPathXmlApplicationContext(filePath);
//		  String message = resources.getMessage("message", null, "Default", null);
//		  System.out.println(message);
		  
		  String message = resources.getMessage("argument.required", new Object [] {"userDao"}, "Required", null);
		  System.out.println(message);
		  
		  message = resources.getMessage("argument.required", new Object [] {"userDao"}, "Required", Locale.UK);
		  System.out.println(message);
		}

}
